package com.my.spring.demo.processors;

import com.my.spring.framework.annotation.MyService;
import com.my.spring.framework.beans.config.MyBeanPostProcessor;

@MyService
public class TestPostProcessor implements MyBeanPostProcessor {
    @Override
    public Object postProcessBeforeInitialization(Object bean, String beanName) throws Exception {
        System.out.println("BeanPostProcessor work, before init");
        return null;
    }

    @Override
    public Object postProcessAfterInitialization(Object bean, String beanName) throws Exception {
        System.out.println("BeanPostProcessor work, after init");
        return null;
    }
}
